package com.jo.bean;

import lombok.Data;

/**
 * 属性参数的封装，用于构造函数参数，bean自身field属性
 * @author Jo
 * @date 2017/8/22
 */
@Data
public class Property {
    private String name;

    private Object value;

    private String ref;

    private Class<?> clazz;

    public Property(String name, Object value, String ref, Class<?> clazz) {
        this.name = name;
        this.value = value;
        this.ref = ref;
        this.clazz = clazz;
    }

    public boolean isValue(){
        return value != null;
    }

    public boolean isRef(){
        return ref != null;
    }
}
